#include <iostream>
#include <string>

using namespace std;

// 3330. 找到初始输入字符串 I
// https://leetcode.cn/problems/find-the-original-typed-string-i/description/?envType=daily-question&envId=2025-07-01

class Solution
{
public:
    int possibleStringCount(string word)
    {
        int ans = 0;
        for (int i = 1; i < word.size(); i++)
        {
            if(word[i] == word[i-1]){
                ans++;
            }
        }
        return ans + 1;
    }
};

int main()
{
    return 0;
}